package cn.itcast.nems.journal.dto;

import cn.itcast.nems.studentrecord.dao.entity.JournalTransferType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateSerializer;
import lombok.Data;

import java.time.LocalDate;
import java.util.List;

@Data
public class JournalTransferLineDiscountCalcParams {
    private String originStudentRecordId;       // 学籍ID
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @JsonSerialize(using = LocalDateSerializer.class)
    @JsonDeserialize(using = LocalDateDeserializer.class)
    private LocalDate originClazzOutDate;  // 原班级退班日期
    private JournalTransferType type;                   // 转班类型
    private Integer targetClazzId;         // 目标班级ID
    private List<Integer> discountIdList;        // 优惠列表, 可能为空数组
    private List<String> discountCouponList ;   // 个人优惠单
 }
